package com.yaowk.sfp.login.server.entity;

import com.yaowk.sfp.common.db.BaseEntity;
import com.yaowk.sfp.common.db.GeneratorNote;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.annotations.CreationTimestamp;

import javax.persistence.Entity;
import java.util.Date;

@Getter
@Setter
@ToString
@Entity
public class LoginLog extends BaseEntity<Long> {

    @CreationTimestamp
    @GeneratorNote("登录时间")
    private Date createTime;
    @GeneratorNote("登录ip")
    private String ip;
    @GeneratorNote("用户id")
    private Long userId;
}
